package com.suke.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.suke.domain.Emp;
import com.suke.mapper.EmpMapper;
import com.suke.service.EmpService;
@Service
public class EmpServiceImpl implements EmpService{

    @Resource
    private EmpMapper empMapper;

    @Override
    public int deleteByPrimaryKey(Short empno) {
        return empMapper.deleteByPrimaryKey(empno);
    }

    @Override
    public int insert(Emp record) {
        return empMapper.insert(record);
    }

    @Override
    public int insertSelective(Emp record) {
        return empMapper.insertSelective(record);
    }

    @Override
    public Emp selectByPrimaryKey(Short empno) {
        return empMapper.selectByPrimaryKey(empno);
    }

    @Override
    public int updateByPrimaryKeySelective(Emp record) {
        return empMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Emp record) {
        return empMapper.updateByPrimaryKey(record);
    }

}
